package com.wl.feignconsumer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wangl
 * @desc
 * @date:2017/6/2011:26
 * @Copyright (c) 2017, DaChen All Rights Reserved.
 */
@FeignClient(serviceId = "compute-service")
public interface ComputeClient {

    @RequestMapping(value = "add", method = RequestMethod.GET)
    int add(@RequestParam("a")Integer a, @RequestParam("b") Integer b);
}
